<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCpcLimitsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cpc_limits', function (Blueprint $table) {
            $table->increments('id');
            $table->string('source')->index('source');
            $table->string('limit_key')->index('limit_key');
            $table->string('limit_type')->index('limit_type');
            $table->string('limit_value');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cpc_limits');
    }
}
